package com.teatrace.service.pack;

import java.util.List;

import com.teatrace.model.pack.GoodsType;
import com.teatrace.model.pack.PackingFlow;

public interface PackService {
	
	/**
	 * 列出信息byPage
	 * @throws Exception 
	 * 
	 * @throws Exception
	 */
	public <T> List<T> listByPage(Class<T> clazz, int page) throws Exception;
	
	/**
	 * 列出包装流程all信息
	 * @throws Exception 
	 * 
	 * @throws Exception
	 */
	public <T> List<T> listObject(Class<T> clazz) throws Exception;
	
	/**
	 * 修改信息
	 * 
	 */
	public void update(final Object obj) throws Exception;
	
	/**
	 * 增加信息
	 */
	public void add(final Object obj) throws Exception;
	
	/**
	 * 增加包装流程
	 * @param goodsType 
	 * 
	 */
	public void addPackingFlow(PackingFlow packingFlow) throws Exception;
	
	/**
	 * 删除包装流程
	 */
	public void delPackingFlowById(PackingFlow packingFlow) throws Exception;
	
	/**
	 * 修改包装流程
	 * 
	 */
	public void updatePackingFlow(PackingFlow packingFlow) throws Exception;
	
	/**
	 * 查找商品类型
	 */
	public boolean findGoodsType(GoodsType goodsType) throws Exception;
	
}
